Clarify key-{press,release}-event docs.
authorStefan Kost <ensonic@users.sf.net>
Mon, 31 Jan 2011 21:07:34 +0000 (23:07 +0200)
committerStefan Kost <ensonic@users.sf.net>
Mon, 31 Jan 2011 21:10:10 +0000 (23:10 +0200)
Mention key-repeat in key-press and fix a copy'n'paste in key-release docs.

gtk/gtkwidget.c

index eb443211c767beaf7a68198be359efb86a9ed080..a434b429e70dd8d4e23be3da5d0b8ea6dd6c3357 100644 (file)
@@ -1966,7 +1966,8 @@ gtk_widget_class_init (GtkWidgetClass *klass)
    * @widget: the object which received the signal
    * @event: (type Gdk.EventKey): the #GdkEventKey which triggered this signal.
    *
-   * The ::key-press-event signal is emitted when a key is pressed.
+   * The ::key-press-event signal is emitted when a key is pressed. The signal
+   * emission will reoccur at the key-repeat rate when the key is kept pressed.
    *
    * To receive this signal, the #GdkWindow associated to the widget needs
    * to enable the #GDK_KEY_PRESS_MASK mask.
@@ -1991,7 +1992,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
    * @widget: the object which received the signal
    * @event: (type Gdk.EventKey): the #GdkEventKey which triggered this signal.
    *
-   * The ::key-release-event signal is emitted when a key is pressed.
+   * The ::key-release-event signal is emitted when a key is released.
    *
    * To receive this signal, the #GdkWindow associated to the widget needs
    * to enable the #GDK_KEY_RELEASE_MASK mask.